<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>教练</title>
    <head>
        <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
        <script type="text/javascrpit">
              var settings = {
              "crossDomain": true,
              "url": "http://localhost:8090/config",
              "method": "POST",
              "headers": {
                "content-type": "application/json"
              },
              "data": "{\"coach_count\":\"1\",\"student_count\":\"5\",\"workingday\":[true,true,true,true,true,true,false],\"classtimes\":[{\"starttime_h\":8,\"endtime_h\":12,\"hours\":4,\"teacherid\":0},{\"starttime_h\":13,\"endtime_h\":17,\"hours\":4,\"teacherid\":0}],\"studentcount_oncar\":\"2\",\"day_h_max\":\"4\",\"week_h_max\":\"20\",\"subject2_h\":\"32\",\"donotchangecoachforstudent\":false} "
            }

            $.ajax(settings).done(function (response) {
              console.log(response);
            });

        </script>
    </head>
</head>
<body>
<h1>
    教练课表
</h1>
<table id="coach_table">
    <thead>
    <tr>
        <th>周一</th>
        <th>周二</th>
        <th>周三</th>
        <th>周四</th>
        <th>周五</th>
        <th>周六</th>
        <th>周日</th>
    </tr>
    </thead>
    <tbody>

    </tbody>
</table>
<div id="result"></div>
<script type="text/javascript">
           $(document).ready(function(){
              $.post("coach", function(data) {
                  $("#result").html(data);
                });
            });

</script>
</body>
</html>